{extend name="property/public/insidePageBase" /}
{block name="title"}批量审核{/block}
{block name="body"}
<div class="layuimini-container">
    <div class="layuimini-main">
        <div class="layui-form layui-form-pane">

            <div class="layui-form-item" pane="">
                <label class="layui-form-label">审核状态</label>
                <div class="layui-input-block">
                    <input type="radio" name="audit_status" autocomplete="off" value="9" title="审核通过">
                    <input type="radio" name="audit_status" autocomplete="off" value="3" title="失败">
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">备注说明</label>
                <div class="layui-input-block">
                    <textarea placeholder="请输入备注说明" class="layui-textarea" name="remark"></textarea>
                </div>
            </div>
            <table id="supplyTable" lay-filter="supplyTable"></table>
            <script type="text/html" id="owner_type_tpl">
                {{# if(d.owner_type === 1) { }}<span class="layui-badge layui-bg-cyan">业主</span>{{# } }}
                {{# if(d.owner_type === 2) { }}<span class="layui-badge layui-bg-green">亲属</span>{{# } }}
                {{# if(d.owner_type === 3) { }}<span class="layui-badge layui-bg-blue">租户</span>{{# } }}
            </script>
            <div class="layui-form-item layui-hide">
                <input type="hidden" name="id" value="{:request()->get('id')}" />
                <button class="layui-btn" lay-submit lay-filter="submitBtn" id="submitBtn">提交</button>
            </div>
        </div>
    </div>
</div>
{/block}
{block name="js"}
{__block__}
<script>
    var supplyData = [];
    var rechargeRemark = '';
    layui.use(['form','table'], function () {
        var form = layui.form, table = layui.table;
        ownerListData = {:json_encode($ownerListData)};
        $('#meterNumBox').show()
        let tableObj = table.render({
            elem: '#supplyTable' //指定原始表格元素选择器（推荐id选择器）
            ,id:'supplyTable'
            ,data:ownerListData
            ,height: 400 //容器高度
            ,cols: [[
                {field: 'username', width: 128, title: '业主姓名'},
                {field: 'mobile', width: 118, title: '手机号码'},
                {field: 'add_time', width: 168, title: '申请时间',sort: true},
                {field: 'full_room_name', minWidth: 268, title: '房间信息', sort: true},
                {field: 'owner_type', title: '身份', width: 88, templet: '#owner_type_tpl', sort: true},
            ]],
            limit: 1000
        });
    });
</script>
{/block}